package com.djx.redis;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author dingjunxiong
 * EnableEurekaClient 声明这是一个Eureka client
 * EnableFeignClients 启用feigin客户端
 * exclude = DataSourceAutoConfiguration.class 设置不配置数据库
 */
@ServletComponentScan(value = "com.djx.redis")
@EnableFeignClients(basePackages = "com.djx.redis")
@EnableEurekaClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class RedisApplication {

    public static void main(String[] args) {
        SpringApplication.run(RedisApplication.class, args);
    }

}
